//
//  BSTjgzLeftCell.m
//  BaiSiBuDeJie
//
//  Created by chaoyi on 16/8/24.
//  Copyright © 2016年 tsaievan. All rights reserved.
//

#import "BSTjgzLeftCell.h"

@interface BSTjgzLeftCell ()

@property (weak, nonatomic) IBOutlet UILabel *nameLab;//类型名称

@end

@implementation BSTjgzLeftCell

static NSString *const tjgzLeftCellID = @"tjgzLeftCell";
#pragma mark ----------- 快速创建
+ (instancetype)tjgzLeftCell:(UITableView *)tableView{
    
    BSTjgzLeftCell *cell = [tableView dequeueReusableCellWithIdentifier:tjgzLeftCellID];
    
    if(!cell){
        
        cell = [[NSBundle mainBundle]loadNibNamed:@"BSTjgzLeftCell" owner:nil options:nil].lastObject;
        
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        
        cell.backgroundColor = [UIColor colorWithRed:0.95 green:0.95 blue:0.95 alpha:1.00];
    }
    
    return cell;
}

#pragma mark ----------- 重写set方法

- (void)setModel:(SBTjgzListModel *)model{
    
    _model = model;
    
    //设置数据
    
    self.nameLab.text = model.name;
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    //设置样式

    
    
}

@end
